<?php

class Rcp_Methods_Data_LectureHourDef {

  /**
   *
   * @var int
   */
  public $id;

  /**
   *
   * @var int
   */
  public $weekDay;

  /**
   *
   * @var start
   */
  public $startHour;

  /**
   *
   * @var string
   */
  public $endHour;

  public function __construct(RcpLecutreHourDefs $lectureHourDef) {
    $this->id = $lectureHourDef->getId();
    $this->weekDay = $lectureHourDef->getWeekDay();
    $startHour = new DateTime($lectureHourDef->getStartHour());
    $this->startHour = $startHour->format('H:i');
    $endHour = new DateTime($lectureHourDef->getEndHour());
    $this->endHour = $endHour->format('H:i');
  }

}
